# def printMax(a, b):
#     """
#     求两个数较大的数
#     :param a: 一个参数
#     :param b: 一个参数
#     :return: 返回较大的数
#     """
#
#
# help(printMax)
# print("print(printMax.__doc__)  ", printMax.__doc__)

# def printShape(n):
#     """
#     返回一个列表
#     :param n:
#     :return:
#     """
#     s1 = "#" * n
#     s2 = "$" * n
#     return [s1, s2]
#
#
# s = printShape(5)
# print(s)

# a = 100
#
#
# def f1(a, b, c):
#     print(a, b, c)
#     print(locals())    # 打印输出的局部变量
#     print("#" * 20)
#     print(globals())   # 打印输出的全局变量
#
#
# f1(2, 3, 4)


# f = lambda a, b, c: a + b + c
# print(f)
# print(id(f))
# print(type(f))
# print(f(1, 2, 3))
#
# g = [lambda a: a * 2, lambda b: b * 4, lambda c: c * 8]
# print(g[0](1), g[1](2), g[2](3))

# s = "print('abcd')"
# eval(s)
#
# a = 10
# b = 20
# c = eval("a+b")
# print(c)
#
# dict1 = dict(a=100, b=200)
# d = eval("a+b", dict1)
# print(d)

# def factorial(n):
#     if n == 1:
#         return 1
#     else:
#         return n * factorial(n - 1)
#
#
# print(factorial(5))
